From: Owen W. Taylor Date: Mon, 28 Mar 2011 17:14:36 +0000 (-0400) Subject: Fix problem with app menu showing when leaving overview X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8423 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c5eb324cf05258acbd409501704a2f2eb63aa358;p=gnome-shell.git Fix problem with app menu showing when leaving overview Since the opacity of the application menu is controlled by it's _targetIsCurrent flag, we need to respect that when entering and leaving the overview. https://bugzilla.gnome.org/show_bug.cgi?id=645734 --- diff --git a/js/ui/panel.js b/js/ui/panel.js index 3ec9a3b4f..8aa3265d8 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -300,6 +300,10 @@ AppMenuButton.prototype = { this._visible = true; this.actor.show(); + + if (!this._targetIsCurrent) + return; + Tweener.removeTweens(this.actor); Tweener.addTween(this.actor, { opacity: 255, @@ -312,6 +316,11 @@ AppMenuButton.prototype = { return; this._visible = false; + if (!this._targetIsCurrent) { + this.actor.hide(); + return; + } + Tweener.removeTweens(this.actor); Tweener.addTween(this.actor, { opacity: 0,